#include <bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[])
{
    // 输入贝贝要看展览的星期
    int beibei;
    cin >> beibei;

    // 判定晶晶是否有空去看展览
    if( beibei%2==0 || beibei==7 )
        cout << "YES" << endl;
    else
        cout << "NO" << endl;

    return 0;
}
